<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h3>1.访问普通Action属性</h3>
name:<s:property value="name"/><br/>
age:<s:property value="age"/>
<h3>2.访问实体属性</h3>
姓名:<s:property value="user.username"/><br/>
密码:<s:property value="user.password"/><br/>
生日:<s:property value="user.birthday"/><br/>
<h3>3.访问作用域对象的数据</h3>
<s:property value="#request.req"/><br/>
<s:property value="#session.ses"/><br/>
<s:property value="#application.app.username"/><br/>
<s:property value="#attr.ses"/><br/>
<h3>4.访问数组的元素</h3>
用户1姓名 :<s:property value="users[0].username"/><br/>
用户2密码:<s:property value="users[1].password"/><br/>
用户3生日:<s:property value="users[2].birthday"/><br/>
</body>
</html>